<!DOCTYPE html>

<html>
<head>
  <style>
    #box {
      height: 50px;
      width: 100px;
      background-color: blue;
      transition-property: top;
      transition-duration: 1s;
      transition-duration: 0;
    }
  </style>
  <script>
    if (window.testRunner)
      testRunner.dumpAsText();

    function test()
    {
        var box = document.getElementById('box');
        var dur = window.getComputedStyle(box).transitionDuration;
        document.getElementById('result').innerHTML = "Duration was " + dur + " (should be 1s): " + (dur == "1s" ? "PASS" : "FAIL");
    }
    window.addEventListener('load', test, false)
  </script>
</head>
<body>

<div id="box">
</div>
<div id="result">
</div>
</body>
</html>
